Ubuntu 17.04
Sponsored Link

Add a User
2017/04/13
[1] If you'd like to add new user, Add like follows.
# add a user [zapus]

ubuntu@dlp:~$
sudo adduser zapus

[sudo] password for ubuntu:
# own password

Adding user `zapus' ...
Adding new group `zapus' (1001) ...
Adding new user `zapus' (1001) with group `zapus' ...
Creating home directory `/home/zapus' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
# set user's password

Retype new UNIX password:
# confirm

passwd: password updated successfully
Changing the user information for zapus
Enter the new value, or press ENTER for the default
Full Name []:
# input some informations (possible to keep empty)

Room Number []:

Work Phone []:

Home Phone []:

Other []:

Is the information correct? [Y/n]
y

ubuntu@dlp:~$
[2] If you'd like to give privileges to a new user, Do like follows.
ubuntu@dlp:~$
sudo
usermod -G sudo zapus

ubuntu@dlp:~$
su - zapus

Password:
# try to execute a command which requires privilege

zapus@ubuntu:~$
[sudo] password for zapus:    
# input own password

.....
.....
Ubuntu 17.04 ubuntu ttyS0

dlp login:
 
Tweet